package com.mzz.behavior.classandclass.chain;

/**
 *
 * @author xushijian
 * @date 18/5/15 上午8:49
 */
public class ConcreteHandler extends Handler {

    @Override
    public void handleRequest() {

        if (getSuccessor() != null) {
            System.out.println("放过请求（请求成功）");
            getSuccessor().handleRequest();
        } else {
            System.out.println("处理请求（请求失败）");
        }
    }
}
